//
//  UIImage+XJImageToolBox.m
//  AppFrame
//
//  Created by GXJ on 2017/2/24.
//  Copyright © 2017年 GXJ. All rights reserved.
//

#import "UIImage+XJImageToolBox.h"

@implementation UIImage (XJImageToolBox)
+ (UIImage *)resizeImageWithName:(NSString *)name
{
    UIImage *image = [self imageNamed:name];
    return [image stretchableImageWithLeftCapWidth:image.size.width * 0.5 topCapHeight:image.size.height * 0.5];
}

@end
